package xidian.vlab.dto;

import org.openstack4j.model.image.v2.DiskFormat;
import org.springframework.web.multipart.MultipartFile;

public class ImageDTO {
    private Long tid;
    private String imgId;
    private String owner;
    private String imgName;
    private DiskFormat format;
    private String profile;
    private Long size;
    private MultipartFile file;//镜像

    public ImageDTO(){}
    public ImageDTO(String imgId, String owner, String imgName, DiskFormat format, Long size) {
        this.imgId = imgId;
        this.owner = owner;
        this.imgName = imgName;
        this.format = format;
        this.size = size;
    }

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getImgName() {
        return imgName;
    }

    public void setImgName(String imgName) {
        this.imgName = imgName;
    }

    public DiskFormat getFormat() {
        return format;
    }

    public void setFormat(DiskFormat format) {
        this.format = format;
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Long getTid() {
        return tid;
    }

    public void setTid(Long tid) {
        this.tid = tid;
    }

    public String getProfile() {
        return profile;
    }

    public void setProfile(String profile) {
        this.profile = profile;
    }

    public MultipartFile getFile() {
        return file;
    }

    public void setFile(MultipartFile file) {
        this.file = file;
    }

    @Override
    public String toString() {
        return "ImageDTO{" +
                "tid=" + tid +
                ", imgId='" + imgId + '\'' +
                ", owner='" + owner + '\'' +
                ", imgName='" + imgName + '\'' +
                ", format='" + format + '\'' +
                ", profile='" + profile + '\'' +
                ", size=" + size +
                ", image=" + file +
                '}';
    }
}
